sources = files([
  'portal.cpp',
  'sock_specs.cpp',
  'shadow.cpp'
])

src = include_directories('.')

sources += configure_file(output : 'config.cpp', input : 'config.cpp.in',
  configuration : {
  'group' : group,
  'project' : meson.project_name(),
  'version' : meson.project_version(),
  'build' : run_command('git', 'describe').stdout().strip(),
  'maintainer' : maintainer,
})

lib = library(meson.project_name(), sources, dependencies: module_deps)
exe = executable(meson.project_name(), 'main.cpp', link_with : lib, install : true, dependencies : module_deps,link_args:['-static-libgcc','-static-libstdc++','-static'])
run_target('run', command : [exe] + get_option('run_args'), depends : exe)
